<template>
    <div class="error-wrap">
        <div class="content">
            <img src="@/assets/images/404.png" alt="出错了"/>
        </div>
        <div class="tips">
            <slot name="tips"><p>您访问的页面不见了/(ToT)/~~</p></slot>
        </div> 
        <slot></slot>
    </div>
</template>

<script>
export default {
    name: 'ErrorDefault'    
}
</script>

<style lang="scss" scoped>
    .error-wrap{
        padding: {
            left: 20px;
            right: 20px;
        }
        .content{
            display: flex;
            flex-direction: column;
            align-items: center;
            box-sizing: border-box;
            padding: {
                top: 20px;
                bottom: 20px;
            }
            img {
                display: block;
                width: 100%;
            }
        }

        .tips {
            display: flex;
            flex-direction: column;
            align-items: center;
            font-size: 14px;
        }
    }
</style>